package org.alps.pattern.decorator.battercake.v2;

/**
 * 抽象包装器类：扩展
 * @date 2021-05-01
 * @author zkw
 */
public abstract class BattercakeDecorator extends Battercake {

    /**
     * 静态代理、委派
     */
    private Battercake battercake;

    public BattercakeDecorator(Battercake battercake) {
        this.battercake = battercake;
    }

    @Override
    protected String getMsg() {
        return this.battercake.getMsg();
    }

    @Override
    protected int getPrice() {
        return this.battercake.getPrice();
    }
}
